import hzcRequest from "../../../utils/https";


// getTypeGoodsList
// 上传上商品
const saveFileUploads = (data) => {
	// return hzcRequest.post(`http://124.156.185.2414141/h5Shop/api/ln/saveFileUploads?userId=${data.userId}`,{file:data.file}
	return hzcRequest.post(`/h5Shop/api/ln/saveFileUploadsOther`, data, {
		'Content-type': 'multipart/form-data'
	})
}

const uploadVideo = (data) => {
	// return hzcRequest.post(`http://124.156.185.2414141/h5Shop/api/ln/saveFileUploads?userId=${data.userId}`,{file:data.file}
	return hzcRequest.post(`/uploadVideoOther`, data, {
			'Content-type': 'multipart/form-data'
		}

	)
}

export {
	saveFileUploads,
	uploadVideo
};